POV-Ray : Newsgroups : povray.beta-test : Strange spline behaviour : Strange spline behaviour Server Time
30 Jul 2024 18:10:52 EDT (-0400)
  Strange spline behaviour  
From: Hugo
Date: 12 Oct 2001 12:28:30
Message: <3bc71a2e$1@news.povray.org>
Hello again!

Well, again I don't know if this has been addressed already.. But why is it,
that this spline comes out different every second time I render it? And it
doesn't behave as good as in MegaPOV.. Either the effect of the spline
keywords have deliberately changed ... or it's a bug.

Regards,
Hugo


// -- begin
#version 3.5;

camera { right -1.33*x up 1*y direction 1*z location <0,0,8> look_at 0 angle
48 }
light_source { <-25,25,35> color rgb 1.5 }

#declare Rounding_One = spline { cubic_spline
    0,<0,-1.5,0>
  .11,<0,-1.33,0>
  .25,<0,-1.25,0>
      .33,<0,-1,0>
      .66,<1,1,0>
      .75,<1,1.25,0>
      .88,<1,1.33,0>
        1,<1,1.5,0> }

#declare ctr=0;
#while (ctr<1)
 sphere { Rounding_One(ctr),.125 pigment { rgb 1 } }
 #declare ctr=ctr+.001;
 #end

cylinder { 2*y,1.5*y,.125 translate 1*x pigment { rgb 1 } }
// --- end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.